<extend name="./Public/main" />
<block name="main">
  <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>添加商品</h5>
                    </div>
                    <div class="ibox-content">
                        <form method="post" class="form-horizontal" action="{:U('Goods/insert')}" enctype ="multipart/form-data">
                            <div class="form-group">
                                <label class="col-sm-2 control-label" style="text-align: center;color:red">**必填**</label>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">商品标题</label>

                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="title">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">首图</label>
                                <div class="col-sm-10">
                                    <input type="file" name="pic">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">商品类别</label>

                                <div class="col-sm-10">
                                    <select name="class" class="col-sm-10" >
                                        <volist name="type" id="vo">
                                           <option value="{$vo.class}">{$vo.name}</option>
                                        </volist>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">排序</label>

                                <div class="col-sm-10">
                                    <input type="type" class="form-control" name="sort">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">中文摘要</label>

                                <div class="col-sm-10">
                                   <textarea name="c_summary" id="" cols="140" rows="8"></textarea>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">中文内容</label>

                                <label class="col-sm-2 control-label">{$vo.web_text}</label>
                                         <script>
                                            var ue1 = UE.getEditor('c_content');
                                        </script>
                                <div class="col-sm-10">
                                    <script id="c_content" type="text/plain" style="width:1024px;height:250px;" name="c_content"></script>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">是否显示</label>

                                <div class="col-sm-10">
                                    <div class="radio">
                                        <label>
                                            <input type="radio" checked value="1" id="optionsRadios1"  name="status">是</label>
                                    </div>
                                    <div class="radio">
                                        <label>
                                            <input type="radio" value="2" id="optionsRadios2" name="status">否</label>
                                    </div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label" style="text-align: center;color:red">**可选**</label>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">作者</label>

                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="auther">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">关键字</label>

                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="keyword">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">是否置顶</label>

                                <div class="col-sm-10">
                                    <div class="radio">
                                        <label>
                                            <input type="radio" checked="" value="2" id="optionsRadios1"  name="top">否</label>
                                    </div>
                                    <div class="radio">
                                        <label>
                                            <input type="radio" value="1" id="optionsRadios2" name="top">是</label>
                                    </div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">英文摘要</label>

                                <div class="col-sm-10">
                                   <textarea name="e_summary" id="" cols="140" rows="8"></textarea>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">英文内容</label>

                                <label class="col-sm-2 control-label">{$vo.web_text}</label>
                                         <script>
                                            var ue1 = UE.getEditor('e_content');
                                        </script>
                                <div class="col-sm-10">
                                    <script id="e_content" type="text/plain" style="width:1024px;height:250px;" name="e_content"></script>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">保存内容</button>
                                    <button class="btn btn-white" type="submit">取消</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
</block>